package com.ktjiaoyu.crm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ktjiaoyu.crm.pojo.Right;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface RightService {

    /**
     * 根据角色id查询权限
     * @param roleId
     * @return
     */
    public List<Right> findRightsByRoleId(@Param("roleId") Long roleId);

    /**
     * 查询所有的权限
     * @return
     */
    public List<Right> findAllRights();


    public Map<String,String> loadFilterChainDefinitions();


    public void reloadFilterChainDefinitions();
}
